package com.xinzhi.savingpot.userinfo.mapper;

import com.xinzhi.savingpot.userinfo.entity.UserInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface IPersonalCenter {
    /**
     * 动态添加用户信息
     *
     * @param user
     * @return
     */
    int updatePersonal(@Param("user") UserInfo user);

    /**
     *  查询个人中心的个人信息
     * @param userId
     * @return
     */
    UserInfo searchResult(@Param("userId") int userId);



}